#ifndef __STM32F10X_LED_H__
#define __STM32F10X_LED_H__

#include "stm32f10x.h"

// USART1: TX -> PA9 ; RX -> PA10
#define UART_CLK_GPIO_PORT  RCC_APB2Periph_GPIOA
#define UART_CLK            RCC_APB2Periph_USART1
#define UART_GPIO_PORT      GPIOA
#define UART_PIN_TX         GPIO_Pin_9
#define UART_PIN_RX         GPIO_Pin_10
#define UART_USER           USART1
#define UART_BAUDRATE       115200

void uart1_init(void);
void UART_SendByte(USART_TypeDef* USARTx,uint8_t data);
void UART_SendStr(USART_TypeDef* USARTx,char *String);

#endif
